package summative;

import javax.swing.*;
import java.awt.*;

public class TextPanel extends JPanel
{
	JTextField field;
	int type = 0;

	public TextPanel(VectorList vectors)
	{
		super();
		setLayout(new BorderLayout());
		setPreferredSize(new Dimension(500, 20));

		//list.setTextField(field);

		field = new JTextField();

		TextListener listen = new TextListener(vectors, field);
		add(field, BorderLayout.CENTER);
		field.addActionListener(listen);
	}

	public void setTextForField(String text)
	{
		field.setText(text);
	}

	public void updateView() 
	{
		// TODO Auto-generated method stub

	}
}
